<template>
  <div>
    <!-- <Message message="message" :duration="0" showClose></Message> -->
  </div>
</template>
<script setup lang="ts">
// import Message from './Message.vue'
import { onMounted } from 'vue'
import { createMessage } from './method'
const instance = createMessage({
  message: 'message1',
  duration: 0,
  showClose: true
})
createMessage({ message: 'message2', duration: 0, showClose: true })
setTimeout(() => {
  // instance.destory()
}, 2000)
</script>
